package com.tbb.app.common.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author zhengdandan
 * @Description 分页查询基础条件
 * @create 2020-02-17 14:38
 */
@Data
@ApiModel(description = "统一分页查询结构")
public class PageBeanSearch {

    @ApiModelProperty(value = "当前页码，必填")
    @NotNull(message = "当前页码必填")
    private int currentPage;

    @ApiModelProperty(value = "每页记录条数，必填")
    @NotNull(message = "每页容量必填")
    private int pageSize;
}
